Skip to content

Conversation

simonvandel
Copy link
Contributor

@simonvandel simonvandel commented Jul 2, 2025

Similar to #1911.

The docs for GenericDialect says that is can be permissive, so I thought it could support trailing commas in projections.

This would help a bit on the "friendly sql" issue
apache/datafusion#14514

I removed a test-case that tested that ´GenericDialectdid not support trailing commas in projections. Positive tests for trailing commas still exists in theparse_projection_trailing_comma` test

Similar to apache#1911.

The docs for GenericDialect says that is can be permissive, so I thought
it could support trailing commas in projections.

This would help a bit on the "friendly sql" issue
apache/datafusion#14514
@simonvandel simonvandel force-pushed the generic-support-trailing-comma branch from 0a261dd to 44ceeda Compare July 2, 2025 19:46
Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @simonvandel!
cc @alamb

@iffyio iffyio merged commit cf9e504 into apache:main Jul 6, 2025
10 checks passed
@alamb
Copy link
Contributor

alamb commented Jul 6, 2025

Thank you -- I think this will be really nice improvement to SQL in DataFusion by default

simonvandel added a commit to simonvandel/datafusion-sqlparser-rs that referenced this pull request Aug 22, 2025
Similar to apache#1911 and apache#1921

The docs for GenericDialect says that is can be permissive, so I thought
it could support pipe operators.

This will make the out-of-the-box experience of DataFusion better
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants